<?php

class Persion {
    public $name = 'lisi';
    public $age = 22;

    public function Persion($name='',$age=0)
    {
        $this->name=$name;
        $this->age = $age;
    }
}

$p1 = new Persion('lisi',25);
print_r($p1);
print('<br>');